<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<html>
<head>
    <title>home</title>
</head>
<body>
<%--<jsp:include page="/html/common/top.jsp"></jsp:include>--%>
<%@include file="/html/common/top.jsp"%>
<%@include file="/html/common/menu.jsp"%>
<div id="right">

    <a href="/html/meeting/add.jsp" class="btn btn-primary">发布会议</a>

    <table class="table table-bordered">
        <td>主题</td>
        <td>部门名称</td>
        <td>状态</td>
        <td>开始时间</td>
        <td>结束时间</td>

    <c:forEach items="${list}" varStatus="status" var="meeting">
        <tr>
            <td><a href="/meeting/getMeetingById?id=${meeting.id}">${meeting.title}</a></td>
            <%--<td><a href="/meeting/getMeetingById?id=${meeting.id}">${meeting.title}</a></td>--%>
            <td>${meeting.deptName}</td>
            <td>
                <c:choose>
                    <c:when test="${meeting.status==0}">未开始</c:when>
                    <c:when test="${meeting.status==1}">进行中</c:when>
                    <c:when test="${meeting.status==2}">已结束</c:when>
                    <c:otherwise></c:otherwise>
                </c:choose>
            </td>

            <td>
                <fmt:parseDate var="startTime" value="${meeting.startTime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:parseDate>
                <fmt:formatDate value="${startTime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>
            </td>
            <td>${meeting.content}</td>
        </tr>
    </c:forEach>
    </table>
</div>

</body>
</html>
